package com.diaohw.platform.utility.uml.core.obj;

import com.diaohw.platform.utility.uml.core.enums.AccessModifierEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class MethodBO extends FieldBO {

    private List<String> params;

    public static MethodBO of(String name, String classType, AccessModifierEnum modifier) {
        MethodBO bo = new MethodBO();
        bo.setName(name);
        bo.setClassType(classType);
        bo.setModifier(modifier);
        return bo;
    }

    public static MethodBO of(String name) {
        MethodBO bo = new MethodBO();
        bo.setName(name);
        return bo;
    }


}
